package com.example.webmodule.event;

import lombok.Data;
import org.springframework.cloud.bus.event.RemoteApplicationEvent;

import java.io.Serializable;

/**
 * @ClassName EY-CustomEvent
 * @Description com.example.webmodule.event
 * @Author menyj
 * @Date 2025/4/10
 **/
@Data
public class CustomEvent extends RemoteApplicationEvent implements Serializable {
    private String message;

    public CustomEvent() {
        super();
    }
    public CustomEvent(Object source, String message, String originService, String destinationService) {
        super(source, originService, destinationService);
        this.message = message;
    }

    public String getMessage() {
        return message;
    }

    public CustomEvent setMessage(String message) {
        this.message = message;
        return this;
    }
}
